﻿<UserControl x:Class="KaKaSongGame.CardSetView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
    <UserControl.Resources>
        <Storyboard x:Name="clockwiseSB">
            <DoubleAnimation Duration="0:0:0.1" Storyboard.TargetName="rt" Storyboard.TargetProperty="Angle" By="90" FillBehavior="HoldEnd"/>
        </Storyboard>
        <Storyboard x:Name="anticlockwiseSB">
            <DoubleAnimation Duration="0:0:0.1" Storyboard.TargetName="rt" Storyboard.TargetProperty="Angle" By="-90" FillBehavior="HoldEnd"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <StackPanel Orientation="Horizontal" Height="100">
        	<Button Content="clock wise" Template="{StaticResource roatebutton}" Click="Clockwise_rotate" />
            <Border Name="cardcontainer" Margin="10,0,10,0" RenderTransformOrigin=".5,.5">
                <Border.RenderTransform>
                    <RotateTransform x:Name="rt" />
                    
                </Border.RenderTransform>
                <toolkit:PanelDragDropTarget Name="panelDragDropTarget1" GiveFeedback="panelDragDropTarget1_GiveFeedback" ItemDragCompleted="panelDragDropTarget1_ItemDragCompleted" ItemDroppedOnSource="panelDragDropTarget1_ItemDroppedOnSource" ItemDragStarting="panelDragDropTarget1_ItemDragStarting" ItemDroppedOnTarget="panelDragDropTarget1_ItemDroppedOnTarget" Drop="panelDragDropTarget1_Drop">
                    <Grid Name="cardcontainer2">
                        
                    </Grid>
                </toolkit:PanelDragDropTarget>
            </Border>
			<Button Content="clock wise" Template="{StaticResource roatebutton}" Click="AntiClockwise_rotate" RenderTransformOrigin="0.5,0.5" >
				<Button.RenderTransform>
					<CompositeTransform ScaleX="-1"/>
				</Button.RenderTransform>
			</Button>
        </StackPanel>
    </Grid>
</UserControl>
